package com.zhkj.txg.module.member.popup

import android.content.Context
import android.view.Gravity
import android.view.View
import android.widget.TextView
import com.zhkj.txg.R
import razerdp.basepopup.BasePopupWindow

class LevelPopupWindow(context: Context) : BasePopupWindow(context) {
    private lateinit var tvLevel: TextView
    override fun onCreateContentView(): View = createPopupById(R.layout.popup_level_desc)

    init {
        popupGravity = Gravity.CENTER
    }

    override fun onViewCreated(contentView: View?) {
        tvLevel = findViewById(R.id.tvLevel)
    }

    fun setLevelText(content: String): LevelPopupWindow {
        tvLevel.text = content
        return this
    }
}